<template>
    <div>计数器</div>
    <div>{{ count }}</div>
    <button @click="increment">+</button>
</template>
<script lang='ts' setup>
    import {ref} from 'vue'
    const count=ref<number>(0)
    const increment=()=>count.value++
</script>
<style lang='scss' scoped>
</style>